
export default {
  state: {
    myScrollTop: 0,
    scrollTop: 0
  },
  mutations: {
    SetMyScrollTop (state, top) {
      console.log('jinlai??');
      state.myScrollTop = top;
    },
    SetScrollTop (state, top) {
      console.log('jinlai??');

      state.scrollTop = top;
    }
  },
  getters: {
    getMyScrollTop: state => state.myScrollTop,
    getScrollTop: state => state.scrollTop
  },
  actions: {
    // 自定义滚动条高度
    setMyScrollTop ({ commit }, top) {
      commit('SetMyScrollTop', top);
    },
    // 页面滚动条高度
    setScrollTop ({ commit }, top) {
      commit('SetScrollTop', top);
    }

  }
};
